home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 6⁄22⁄90 / 1459-Keeping MPW and THIN-Jun90 < prev    next >
Encoding:
Text File  |  1990-06-25  |  1.4 KB  |  48 lines  |  [TEXT/GEOL]

  1. Item    9751164                         18-June-90        20:46PDT
  2.  
  3. From:   SCHMUCKER1                      Schmucker, Kurt
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Keeping MPW and THINK Compat.
  8.  
  9.     Someone recently asked about the issues in maintaining MPW and Lightspeed
  10. Pascal compatibility for a given set of files.  Here is one of the "gotchas":
  11.  
  12.     Lightspeed does not support the {$H±} options that are used so often in
  13. MacApp applications.  While the beta version of the conversion utility that
  14. takes MPW MacApp source files and turns them into Lightspeed files had a
  15. compatability mode for the conversion, the final version does not (as far as I
  16. can determine).  With this compatability mode on, MPW source lines like these:
  17.  
  18.     {$H-}
  19.     SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
  20.     {$H+}
  21.  
  22. would be turned into ones like these:
  23.  
  24.        {$IFC UNDEFINED THINK_PASCAL}
  25.    {$H-}
  26.        {$ENDC}
  27.     SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
  28.    {$IFC UNDEFINED THINK_PASCAL}
  29.        {$H+}
  30.        {$ENDC}
  31.  
  32.   ( Admittedly, this is a little gross, but it at least compiled with both
  33. development environments.)
  34.  
  35.  
  36.     HOWEVER, in the final conversion utility, there is no compatability mode,
  37. so these three lines become:
  38.  
  39.         SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
  40.  
  41.  
  42.     That is, the unsupported compiler directives are simply removed.  This
  43. makes going back to MPW a real pain.
  44.  
  45.  
  46.             Kurt
  47.  
  48.